package com.employ.job.service.impl;

import java.util.List;
import com.employ.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.employ.job.mapper.EmpInterviewsMapper;
import com.employ.job.domain.EmpInterviews;
import com.employ.job.service.IEmpInterviewsService;

/**
 * 面试安排Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@Service
public class EmpInterviewsServiceImpl implements IEmpInterviewsService 
{
    @Autowired
    private EmpInterviewsMapper empInterviewsMapper;

    /**
     * 查询面试安排
     * 
     * @param id 面试安排主键
     * @return 面试安排
     */
    @Override
    public EmpInterviews selectEmpInterviewsById(Long id)
    {
        return empInterviewsMapper.selectEmpInterviewsById(id);
    }

    /**
     * 查询面试安排列表
     * 
     * @param empInterviews 面试安排
     * @return 面试安排
     */
    @Override
    public List<EmpInterviews> selectEmpInterviewsList(EmpInterviews empInterviews)
    {
        return empInterviewsMapper.selectEmpInterviewsList(empInterviews);
    }

    /**
     * 新增面试安排
     * 
     * @param empInterviews 面试安排
     * @return 结果
     */
    @Override
    public int insertEmpInterviews(EmpInterviews empInterviews)
    {
        empInterviews.setCreateTime(DateUtils.getNowDate());
        return empInterviewsMapper.insertEmpInterviews(empInterviews);
    }

    /**
     * 修改面试安排
     * 
     * @param empInterviews 面试安排
     * @return 结果
     */
    @Override
    public int updateEmpInterviews(EmpInterviews empInterviews)
    {
        empInterviews.setUpdateTime(DateUtils.getNowDate());
        return empInterviewsMapper.updateEmpInterviews(empInterviews);
    }

    /**
     * 批量删除面试安排
     * 
     * @param ids 需要删除的面试安排主键
     * @return 结果
     */
    @Override
    public int deleteEmpInterviewsByIds(Long[] ids)
    {
        return empInterviewsMapper.deleteEmpInterviewsByIds(ids);
    }

    /**
     * 删除面试安排信息
     * 
     * @param id 面试安排主键
     * @return 结果
     */
    @Override
    public int deleteEmpInterviewsById(Long id)
    {
        return empInterviewsMapper.deleteEmpInterviewsById(id);
    }
}
